/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"E388F5F8-A7DD-47B6-A38E-868AE333CE0F"}
 */
var fPais = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"BCC3876C-323E-418C-8575-40DDD6F6900B"}
 */
function iraDetalle(event) {
	forms.hoteles_dtl.controller.show() 
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"93520BB6-7545-48FC-9618-5ACC9A54931A"}
 * @AllowToRunInFind
 */
function buscar(event) {
	if (controller.find() == false)
	{
		globals.DIALOGS.showErrorDialog('Error','Error en la busqueda','OK')
		return
	}
	
	hoteles_cod_pais = fPais+'%'
	
	var cuantos = controller.search()
	if (cuantos == 0)
	{
		controller.loadAllRecords()
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron resultados','OK')
	}
}
